from dataclasses import dataclass
from typing import List


@dataclass
class BBox:
    x1: float
    y1: float
    x2: float
    y2: float


@dataclass
class Detection:
    class_id: int
    confidence: float
    bbox: BBox


@dataclass
class FrameDetections:
    timestamp: float
    detections: List[Detection]
